package com.eastfair.venuebooking.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.venuebooking.demand.QuotationGroup;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 实体类
 * 报价书
 * </p>
 *
 * @author linan
 * @since 2022-06-08
 */
@Data
@ApiModel(value = "QuotationVO", description = "报价书VO")
public class QuotationVO implements Serializable {

    private static final long serialVersionUID = 1L;

    private Map<String, Object> echoMap = new HashMap<>();

    /**
     * 主键id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Long id;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Integer isEnabled;

    /**
     * 商机id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Long opportunityId;

    /**
     * 展会id
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Long exhibitionId;

    /**
     * 价目ID
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @ApiModelProperty("价目ID")
    private Long priceListId;

    /**
     * 报价书标题
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private String quotationTitle;

    /**
     * 总金额（折扣前）
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private BigDecimal totalAmount;

    /**
     * 展厅总数量
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Integer spaceNum;

    /**
     * 场地保证金
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private BigDecimal splaceBondAmount;

    /**
     * 服务保证金
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private BigDecimal serviceBondAmount;

    /**
     * 折扣后总价
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private BigDecimal discountAmount;

    /**
     * 折扣场地服务
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private BigDecimal spaceAmount;

    /**
     * 计价单位(数据字典)
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String priceUnit;

    /**
     * 单位尺 1 时   2 天（“平米/天”，“每天对”应“天”    “平米/小时“，”每小时“对应”时“）
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer unitRuler;

    /**
     * 报价时间
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private LocalDateTime createTime;

    /**
     * 报价人
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private Long createdBy;

    /**
     * 报价人名称
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {QuotationGroup.QueryQuotation.class})
    private String createByName;

    /**
     * 报价书详情列表
     */
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private List<QuotationDetailVO> quotationDetailList;
}
